<?php
if(empty($_POST['sid'])){
    skip('login.php','glyphicon-remove-sign','学号不能为空');
}
if(empty($_POST['pwd'])){
    skip('login.php','glyphicon-remove-sign','密码不能为空');
}
//验证学号长度
 if(mb_strlen($_POST['sid'])>13 || mb_strlen($_POST['sid'])<11){
     skip('register.php','glyphicon-remove-sign','学号长度不正确');
   }




//验证验证码 strtolower() 是将字符串转化成小写
if(strtolower($_POST['vcode'])!=strtolower($_SESSION['vcode'])){
     skip('login.php','glyphicon-remove-sign','验证码错误');
 }


?>